package com.irdstudio.efp.flow.service.dao;

import org.apache.ibatis.annotations.Param;

import com.irdstudio.efp.flow.service.domain.InstFlowInfo;

/**
 * 
 * 
 * 
 * @author Cytus_
 * @since 2018年5月7日 下午9:00:16
 * @version 1.0
 *
 */
public interface InstFlowInfoDao {
	
	public int insertInstFlowInfo(InstFlowInfo instFlowInfo);
	
	
	public InstFlowInfo queryByFlowInstanceId(String instFlowId);
	
	
	public int updateFlowStatusByFlowInstanceId(InstFlowInfo vo) ;

	/**
	 * 查询当前业务流水号下, 异常任务的总数
	 * @param bizSerno 业务流转实例ID
	 * @return 异常总数
	 */
	int queryExceptionTaskCount(@Param("bizSerno") String bizSerno);

	int deleteByPk(@Param("instFlowId") String instFlowId);
}
